#include<stdio.h>


int main(int argc, char const *argv[])
{
    FILE * fp = fopen("hello.txt" , "r");
    char ch = 0;
    int j = 0;
    for (int i = 0; EOF != (ch = fgetc(fp)); i++)
    {
        if (ch == '\n')
        {
            j ++ ;
        } 
    }
    printf("%d\n" , j);
    
    return 0;
}






